import java.util.Arrays;

public class Two {
	public static void main(String[] agrs) {
		// 3、静态初始化一维数组{10,20,11,35,6,89}，进行冒泡排序
		int[] arr1 = { 10, 20, 11, 35, 6, 89 };
		int temp = 0;
		for (int i = 0; i < arr1.length - 1; i++) {
			for (int j = 0; j < arr1.length - 1 - i; j++) {
				if (arr1[j] < arr1[j + 1]) {
					temp = arr1[j];
					arr1[j] = arr1[j + 1];
					arr1[j + 1] = temp;
				}
			}
		}
		System.out.println(Arrays.toString(arr1));
	}
}
